import requests
session_object = requests.session()
cookie_input = input("【提示COOKIE_demo】:\nUM_distinctid=164bd89fa3948-0ff6ff6969f257-4446062d-100200-164bd89fa3b23a; ASP.NET_SessionId=liprqj55yvedczb2q3sdfo55; CNZZDATA1253683945=1555630552-1532187388-http%253A%252F%252Fwww.hebyyjzcgw.cn%252F%7C1532257337\n请输入cookie:")
num = input("请输入需要返回的数据量")
session_object.headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36",
        "cookie": cookie_input,
        "Referer": "http://222.223.205.147:8010/Hospitals/Procurement/PurchaseGoodsList.aspx?returnUrl=%2fLayout.aspx",
}
url = "http://222.223.205.147:8010/Hospitals/Procurement/PurchaseGoodsList.aspx?returnUrl=%2fLayout.aspx"

form_content = {
    "__VIEWSTATE":"mbZjtOsrsBRpZnbpGJ0GEnatbEGXcL1tOutjAoEp/36vpnNtia5AAEfLKbI4IP0gadxHKOk6ftRAqfVkmu5leopiHfGqvTdfx0xhdXfy97UjNo8/ldz/QoCsqKcBA3VA1rvFSrMnEEx8WhVKPn5kP4GpPNZVxHJVuDNRaScnJ1ORsFooXVbCC2+6/MAs/AHdygRkvt4ewo5SK/HLZS0sYrWkBoTTlvEhmh2b3pGailFKfzMlOOfCOwIpP8nUJcUcr3y7OwSWncrym0XasGyId1LyDUWZJzT5/jl6reON/Mfso6OFaujH9/lmeNv1/9skcf7OQY8zz8ycAo+insJ9MxFOK84z+k/URz0Svkzmp/dQ23/68iJ2EU8/xQOaYsnyxeyDzSWqGZR15yzwoMntM6csSS2MRR6qD8e9fVYJIYWhT/ZSK2iQmEs9VbXRLiqKVhxXYLDbjXFPTClBvd9buAiEhOE0o0g/VE+d3zo0ZMSTZ+TDKidfiv5Ckqk1YarGKxZ7r5156+rMnxtz3ttI3J3I1blOyS+XfqEDy04bxIxfwtL5Ku1D9SUyJJLpVKSeghvv7P3DZa2A8JB672oVVChPzsO0S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m9kXpksHy3Ym/5IT0KkjBKOHw+nU1zHLk=",
    "__EVENTTARGET": "ctl00$ContentPlaceHolder1$AspNetPager1",
    "__VIEWSTATEENCRYPTED": "",
    # 这里修改每页显示的数据
    "ctl00$ContentPlaceHolder1$AspNetPager1_pagesize": num,
}
resonse_3 = session_object.post(url,data=form_content)
# 这里是解析袭来的所有数据
data = resonse_3.content.decode()
with open('data.html','w',encoding='utf-8') as content:
    content.write(data)
